#ifndef __MESSAGE_H__
#define __MESSAGE_H__

#include <string>
#include <sstream>
#include <iostream>
#include <map>
#include <utility>
#include <vector>


using namespace std;

class Message{
public:
    enum { SYSTEM = 0, RT=1, MSG=2 };
    Message();
    Message(string msg, int sender, int reciver, int type);
    Message(map<int,pair<int , int> > * msg, int sender, int reciver, int type);
    Message(const Message& other);

    ~Message();
    string msg;
    map<int,pair<int , int> > * RTmsg;
    vector<int> history;
    int ballCounter;
    int sender;
    int reciver;
    int type;
    bool kill;
    bool revive;
    bool exit;


    string toString();
    string printRT();
};
#endif
